package com.example.block_chain.service.blockChain;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.block_chain.domain.dto.BlockDto;
import com.example.block_chain.domain.pbft.VoteInfo;
import com.example.block_chain.domain.pojo.Award;
import com.example.block_chain.domain.pojo.Block;

/*
 *@description: 区块业务
 *@author: hisen
 *@Time: 2023/11/22  22:10
 */
public interface BlockService extends IService<Block> {

    VoteInfo createSchoolBlock(String schoolCode);

    VoteInfo createFacultyBlock(String schoolCode, String facultyCode);

    VoteInfo createMajorBlock(String facultyCode, String majorCode);

    VoteInfo createStudentBlock(String sNo, String schoolCode, String majorCode);

    VoteInfo createAwardBlock(Award award);

    boolean haveCode(String code);

    boolean haveAward(String digest);
}
